package com.esdc.librarysystem.datastate;

import com.esdc.librarysystem.entity.TitleEntity;
import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author shou1dwe
 */
public class ReservationState implements Serializable{
    private Long id;
    private Long bookId;
    private String title;
    private Date reserveDate;

    public ReservationState(Long id, Long bookid, String title, Date reserveDate) {
        this.id = id;
        this.bookId = bookid;
        this.title = title;
        this.reserveDate = reserveDate;
    }

    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * @return the title
     */
    public String getTitle() {
        return title;
    }

    /**
     * @param title the title to set
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * @return the reserveDate
     */
    public Date getReserveDate() {
        return reserveDate;
    }

    /**
     * @param reserveDate the reserveDate to set
     */
    public void setReserveDate(Date reserveDate) {
        this.reserveDate = reserveDate;
    }

    /**
     * @return the bookId
     */
    public Long getBookId() {
        return bookId;
    }

    /**
     * @param bookId the bookId to set
     */
    public void setBookId(Long bookId) {
        this.bookId = bookId;
    }

    @Override
    public String toString(){
        return String.format("Book ID: %d Title: %s on %s", id, title, reserveDate);
    }

}
